import {
	$http
} from '@escook/request-miniprogram'
export default {
	calculate_amount(data) { //计算当前订单金额
		return $http.post('/order/calculate_amount', data)
	},
	order_list(data) { //查询货主订单列表
		return $http.get('/order/order/order_list', data)
	},
	order_detail(data) { //查询货主订单详情
		return $http.post('/order/order/order_detail', data)
	},
	shipperConfirmOrder(data) { //提交订单
		return $http.post('/order/order/shipperConfirmOrder', data);
	},
	getUserInfoDetail(data) {
		return $http.get('/account/driver/getUserInfoDetail', data);
	},

	shipperCancelOrder(data) { //取消订单
		return $http.post('/order/order/shipperCancelOrder', data);
	},
	//支付订单
	payment(data) {
		return $http.post('/order/order/payment', data);
	},

	//定时任务，获取是否有司机接单，有司机接单后改变运单状态
	queryShipperDriverVirtually(data) {
		return $http.post('/order/order/queryShipperDriverVirtually', data);
	},

	//修改清空
	removeOrderWayBillById(data) {
		return $http.post('/order/order/removeOrderWayBillById', data);
	},


	listPullDown(data) { //查询运营商
		return $http.get('/account/supplier/listPullDown', data)
	},
	fleetlistPullDown(data) { //查询运营商车队   supplierId
		return $http.get('/account/fleet/listPullDown', data)
	},
	queryDriverAndVehicle(data) { //查询运营商车队的司机   appointSupplierId
		return $http.get('/account/driver/queryDriverAndVehicle', data)
	},
	addCreateOder(data) { //发送平台建单
		return $http.post('/supplier/platform/addCreateOrder', data)
	},
	//查询我的所有消息
	queryDCargoOwenerMessageAll(data) {
		return $http.get("/account/message/queryDCargoOwenerMessageAll");
	},
	//修改消息状态
	modifyMessageRead(data) {
		return $http.post("/account/message/modifyMessageRead", data);
	},
	//修改消息状态
	modifyMessageReadAll(data) {
		return $http.post("/account/message/modifyMessageReadAll", data);
	},
	//服务评价
	addServiceevaluation(data) {
		return $http.post("/order/order/addServiceevaluation", data);
	},
	//版本查询
	queryVision(data) {
		return $http.get('/account/driver/queryVision', data);
	},
}